package org.jeecg.modules.hc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.common.system.vo.LoginUser;
import org.jeecg.modules.hc.entity.HcMerchant;

import java.util.List;

/**
 * @Description: 商户, 每个方法对应的sql语句在 \jeecg-boot-module-system\src\main\java\org\jeecg\modules\hc\mapper\xml\*.xml 中有相应的 xml 文件中实现
 * @Author: jeecg-boot
 * @Date:   2022-12-13
 * @Version: V1.0
 */
public interface HcMerchantMapper extends BaseMapper<HcMerchant> {

    IPage<HcMerchant> getList(Page<HcMerchant> page, HcMerchant param);

    LoginUser getLoginUser(String param);

    List<HcMerchant> getAllAutoSettleMerchant();

    Integer changeAutoSettle(@Param("merchantId")String merchantId,@Param("autoSettle") Boolean autoSettle);

    Integer clearMerchantOpenId(@Param("merchantId")String merchantId);
}
